package sdk.webview.fmc.com.fmcsdk.base;

import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;
import rx.Observable;
import sdk.webview.fmc.com.fmcsdk.bean.AgreementBean;
import sdk.webview.fmc.com.fmcsdk.bean.JpushAliasBean;

/**
 * Created by ydm on 2017/9/14.
 */

public interface CommonApi {
    /**修改密码*/
    @POST
    Observable<BaseData> submitFeedBack(@Url String url,
                                        @Header("accessToken") String accessToken,
                                        @Query("content") String content  //修改的内容
    );

    /**获取协议*/
    @GET
    Observable<AgreementBean> getAgreement(@Url String url

    );

    /**获取极光别名*/
    @GET
    Observable<JpushAliasBean> getJpushalias(@Url String url

    );
}
